package com.buer.storage.business.dao;


import com.buer.storage.business.domain.ProdCategory;
import com.buer.storage.business.dto.ProdCategoryDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProdCategoryDao {

    //增加装备分类
    int add(ProdCategoryDto prodCategoryDto);

    //删除装备分类
    int delete(int categoryId);

    //修改装备分类
    int update(ProdCategory prodCategory);

    //查询所有装备分类
    List<ProdCategory> select();

    //通过编号或者名字查询
    List<ProdCategory> selectByName(String categoryNumber, String categoryName);
}
